Ext.define('MyApp.view.catalog.CatalogView', {
			extend : 'MyApp.view.ux.BasePanelView',
			xtype : 'catalogview',
			layout : 'border',
			initComponent: function(){
				Ext.apply(this, {
					items : [{
						xtype : 'treepanel',
						region : 'west',
						store : 'CatalogStore',
						width : 300,
						iconCls: 'catalog',
						useArrows : true,
						title : '目录',
						rootVisible : false,
						hideHeaders: true, 
						tools: [
					         { type:'expand' ,tooltip: '打开所有'},
					         { type:'collapse' ,tooltip: '关闭所有'},
					          { type:'refresh' ,tooltip: '刷新'}
					    ],
						viewConfig : {
							plugins : [{
										ptype : 'treeviewdragdrop'
									}]
						},
						plugins: [Ext.create('Ext.grid.plugin.CellEditing', {clicksToEdit: 2})],
				        columns:[{  
				            xtype: 'treecolumn',  
				            dataIndex: 'text',  
				            flex: 1,  
				            editor: {  
				                xtype: 'textfield',  
				                selectOnFocus: true,  
				                validator: function(value){  
				                    value = Ext.String.trim(value);  
				                    return value.length < 1 ? this.blankText : true;  
				                }  
				            }  
				        }],
						minWidth : 200
					},{
						xtype:'docinfoview',
						title:'附件信息',
						region : 'center'
					}]
				});
				this.callParent(arguments);
			}
		});